package com.bckj.freshnow.order.trade.fsm;

import com.alibaba.cola.statemachine.Condition;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

@Component
@RequiredArgsConstructor
public class TradeOrderCondition {

    public Condition<TradeOrderContext> checkCreate() {
        return ctx -> {
//            if (ctx.getStatus() != 0) {
//                throw new RuntimeException("订单状态异常");
//            }
            return true;
        };
    }
}
